import requests from '@/utils/request';

// 条件分页查询
export const getStudentListByCondition = (params) =>
  requests.post('/admin/student/query', params);

// 获取院系的编号与名称列表
export const reqGetDepAndMajor = () =>
  requests.get('/admin/student/queryDepAndMaJorAndClassroom');

// 学生新增
export const reqBatchAddStudent = (params) =>
  requests.post('/admin/student/add', params);

// 学生编辑
export const reqEditStudent = (params) =>
  requests.put('/admin/student/edit', params);

// 学生删除---批量
export const reqDelStudent = (params) =>
  requests.post(`/admin/student/remove`, params);

// 根据学号查询学生是否存在
export const reqCheckStudentIdIsExisting = (params) =>
  requests.get(`/admin/student/checkStudentIdIsExisting/${params}`);

// 根据学号查询学生信息
export const reqGetStudentInfoById = (params) =>
  requests.get(`/admin/student/getStudentInfoById/${params}`);
